package com.itkaien.javaeebased.multipleSystem;

public class wokr01 implements Runnable {

    public static Integer teciket=100;

    @Override
    public void run() {
        while (teciket>0){
            teciket--;
            System.out.println(Thread.currentThread().getName()+"剩余票数："+teciket);
            try {
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
